package com.mxgraph.shape;

import java.util.HashMap;
import java.util.Map;

/**
 * The type Mx stencil registry.
 */
public class mxStencilRegistry {
    /**
     * The constant stencils.
     */
    protected static Map<String, mxStencil> stencils = new HashMap<String, mxStencil>();

    /**
     * Adds the given stencil.
     *
     * @param name    the name
     * @param stencil the stencil
     */
    public static void addStencil(String name, mxStencil stencil) {
        stencils.put(name, stencil);
    }

    /**
     * Returns the stencil for the given name.
     *
     * @param name the name
     * @return the stencil
     */
    public static mxStencil getStencil(String name) {
        return stencils.get(name);
    }

}
